package com.yugao.fintech.antelope.mps;

import com.yugao.fintech.antelope.base.model.constants.ModuleCons;
import com.yugao.fintech.antelope.mps.core.parser.AbstractTemplateParser;
import com.yugao.fintech.antelope.mps.core.sender.MsgSendManager;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
@MapperScan(basePackages = {
        ModuleCons.SCAN_BASE_PACKAGE + ".msg.push.mapper",
})
public class MsgPushMainConfig {

    @PostConstruct
    public void init() throws Exception {
        AbstractTemplateParser.initTemplate();
        MsgSendManager.init();
    }
}
